package com.zlp.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApolloController{
	
	@Value("${userName:test}")
	public String userName;
	
	@RequestMapping("getUserName")
	public String getUserName(){
		
		return "apollo获取配置信息："+userName;
		
	}
	
	
}